<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>登录</title>
		<link href="../../css/mui.min.css" rel="stylesheet" />
		<!--全局css-->
		<link href="../../css/g.css" rel="stylesheet">
		<!--每个文件对应一个css-->
		<link rel="stylesheet" href="login.css" />
		<script>
			document.documentElement.style.fontSize = window.innerWidth / 7.5 + 'px';
		</script>
		<script src="../../js/mui.min.js"></script>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<button class="rightMargin mui-btn mui-btn-blue mui-btn-link mui-btn-nav mui-pull-right">
				注册
			</button>
			<button class="mui-btn mui-btn-blue mui-btn-link mui-btn-nav mui-pull-left mui-action-back">
				<span class="mui-icon mui-icon-left-nav"></span>
				登录
			</button>
		</header>

		<div class="mui-content" id="view">
			<div style="text-align: center;">
				<img src="../../img/login/u37.png" alt="" class="login_img" height="120" width="120"/>
			</div>

			<form class="mui-input-group">
				<div class="mui-input-row" style="height: 1rem">
					<label>
						<img src="../../img/login/u48.png" alt="" height="30" width="30"/>
					</label>
					<input type="text" id="username" value="18061234567" class="mui-input-clear" placeholder="手机号" maxlength="11">
				</div>
				<div class="mui-input-row" style="height: 1rem">
					<label>
						<img src="../../img/login/u50.png" alt="" height="30" width="30"/>
					</label>
					<input type="password" id="pwd" value="123456" class="mui-input-password" placeholder="密码">
				</div>
			</form>

			<div class="mui-button-row">
				<button type="button" class="mui-btn mui-btn-primary login" id="login" onclick="login();">登录</button>
			</div>
			<div class="login_forget">忘记登录密码？</div>
			<div style="text-align: center;">
				<img src="../../img/login/u5.png" alt="" class="login_weixin_img" height="60" width="60"/>
			</div>
		</div>
		<!--有用到再引用-->
		<!--接口-->
		<script src="../../js/base.js"></script>
		<!--模板-->
		<script src="../../js/laytpl.js"></script>
		<!--常用方法 dom操作用原生或mui-->
		<script src="../../js/mq.js"></script>
		<script src="login.js"></script>
		<script>
			mui.init();

			mui.plusReady(function () {
//				app.loginEvent();
			});

//			window.onload = function () {
//              app.loginEvent();
//          };


            /**
			 * 登录成功，跳转到首页
             */
			function login() {
                mui.openWindow({
                    url: "../index.html",
                    id: "index.html",
                    createNew: false,
                    show: {
                        autoShow: true, //页面loaded事件发生后自动显示，默认为true
                        aniShow: "slide-in-right", //页面显示动画，默认为”slide-in-right“；
                        event: 'titleUpdate', //页面显示时机，默认为titleUpdate事件时显示
                        extras: {} //窗口动画是否使用图片加速
                    },
                })
            }
		</script>
	</body>

</html>